//
// Created by Administrator on 2023/8/10.
//

#ifndef DATA_STUCT_STUDY_WZL_001_LINKLIST_H
#define DATA_STUCT_STUDY_WZL_001_LINKLIST_H
#define Status int
#define OK 0
#define ERROR 1
#define ElementType int

typedef struct LNode{
    ElementType data;
    struct LNode *next;
}LNode, *LinkList;



void InitList(LinkList &L);
Status GetElem_L(LinkList &L, int i, ElementType &e);
Status InsertElem_L(LinkList &L, ElementType e);
Status InsertElem_B(LinkList &L, ElementType e);
Status printList(LinkList &L);
Status InsertElem_I(LinkList &L, int i, ElementType e);
Status ListDelete_L(LinkList &L, int i, ElementType &e);
Status MergeDouList(LinkList &L1, LinkList &L2, LinkList &L3);
Status DestroyList(LinkList &L);
#endif //DATA_STUCT_STUDY_WZL_001_LINKLIST_H
